<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.selectWidth2{
   width:205px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">基本信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td  width="135" align="right"><span class="color_red">*</span>园区名称：</td>
		<td  colspan="5">
			<input name="park/zh_title" label="园区名称" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/park/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td  width="135" align="right"><span class="color_red">*</span>园区地址：</td>
		<td  colspan="5">
			<input name="park/address" label="园区地址" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/park/address" />"/> 
		</td>
	</tr>
	

    <tr> 
		
		<td  align="right" ><span class="color_red">*</span>园区建筑面积：</td>
		<td  colspan="5" >
			<input  name="park/build_area"  label="园区建筑面积" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/park/build_area" />"/>平方米
		</td>
	</tr>
	
	<tr> 
		<td  align="right" rowspan="4"  nowrap><span class="color_red">*</span>园区入驻企业数：</td>
		<td rowspan="4">
		    <input  name="park/total_org_num"  id="total_org_num"  label="园区入驻企业数" type="text" onchange="calOrgRate()"  style="text-align: right;"  required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/park/total_org_num" />" /> 
		</td> 
		<td  align="right" ><span class="color_red">*</span>文化企业数：</td>
		<td  colspan="1" >
			<input  name="park/culture_org_num"  id="culture_org_num"  label="文化企业数" type="text" onchange="calOrgRate()" style="text-align: right;" required class="input_css required valueGreatEqual:total_org_num:culture_org_num"   maxlength="20"  onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/park/culture_org_num" />"/>
		</td>
		<td  align="right" >占比：</td>
		<td  colspan="1" >
			<span  name="park/culture_org_rate"  id="culture_org_rate" label="文化企业数的占比"  ><x:out select="$xmlData/data/park/culture_org_rate" /></span>
		</td>
	</tr>
	<tr>
	    <td  align="right" ><span class="color_red">*</span>超千万元企业数：</td>
		<td  colspan="1" >
			<input  name="park/million_org_num"  id="million_org_num"  label="超千万元企业数" type="text" onchange="calOrgRate()" style="text-align: right;" required class="input_css required valueGreatEqual:total_org_num:million_org_num"   maxlength="20"  onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/park/million_org_num" />"/>
		</td>
		<td  align="right" >占比：</td>
		<td  colspan="1" >
			<span  name="park/million_org_rate"  id="million_org_rate"  label="超千万元企业数的占比"  ><x:out select="$xmlData/data/park/million_org_rate" /></span>
		</td>
	</tr>
	<tr>
	    <td  align="right" ><span class="color_red">*</span>超五千万元企业数：</td>
		<td  colspan="1" >
			<input  name="park/five_million_org_num" id="five_million_org_num"  label="超五千万元企业数" onchange="calOrgRate()" type="text" style="text-align: right;" required class="input_css required valueGreatEqual:total_org_num:five_million_org_num"   maxlength="20"  onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/park/five_million_org_num" />"/>
		</td>
		<td  align="right" >占比：</td>
		<td  colspan="1" >
			<span  name="park/five_million_org_rate"  id="five_million_org_rate"  label="超五千万元企业数的占比"  ><x:out select="$xmlData/data/park/five_million_org_rate" /></span>
		</td>
	</tr>
	<tr>
	    <td  align="right" ><span class="color_red">*</span>超亿元企业数：</td>
		<td  colspan="1" >
			<input  name="park/hundred_million_org_num"  id="hundred_million_org_num"  label="超亿元企业数" onchange="calOrgRate()" type="text" style="text-align: right;" required class="input_css required valueGreatEqual:total_org_num:hundred_million_org_num"   maxlength="20"  onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/park/hundred_million_org_num" />"/>
		</td>
		<td  align="right" >占比：</td>
		<td  colspan="1" >
			<span  name="park/hundred_million_org_rate"  id="hundred_million_org_rate"  label="超亿元企业数的占比"  ><x:out select="$xmlData/data/park/hundred_million_org_rate" /></span>
		</td>
	</tr>
	
	<tr>
	    <td colspan="6" class="t_bar">上年度经济效益
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>销售收入：</td>
		<td>
		    <input  name="park/sale_income"  label="销售收入" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/park/sale_income" />"/> 万元
		</td> 
		<td align="right"><span class="color_red">*</span>文化企业销售：</td>
		<td>
		    <input  name="park/sale_culture"  label="文化企业销售" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/park/sale_culture" />"/> 万元
		</td> 
		<td align="right"><span class="color_red">*</span>同比增幅：</td>
		<td>
			<input  name="park/sale_rate"  label="上年度经济效益中销售收入同比增幅" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,9,2,2,null,true)" value="<x:out select="$xmlData/data/park/sale_rate" />"/> %
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>利润总额：</td>
		<td>
		    <input  name="park/profit_income"  label="利润总额" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/park/profit_income" />"/> 万元
		</td> 
		<td align="right"><span class="color_red">*</span>文化企业利润：</td>
		<td>
		    <input  name="park/profit_culture"  label="文化企业利润" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/park/profit_culture" />"/> 万元
		</td> 
		<td align="right"><span class="color_red">*</span>同比增幅：</td>
		<td>
			<input  name="park/profit_rate"  label="上年度经济效益中利润总额同比增幅" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,9,2,2,null,true)" value="<x:out select="$xmlData/data/park/profit_rate" />"/> %
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>税收总额：</td>
		<td>
		    <input  name="park/tax_income"  label="税收总额" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/park/tax_income" />"/> 万元
		</td> 
		<td align="right"><span class="color_red">*</span>文化企业税收：</td>
		<td>
		    <input  name="park/tax_culture"  label="文化企业税收" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/park/tax_culture" />"/> 万元
		</td> 
		<td align="right"><span class="color_red">*</span>同比增幅：</td>
		<td>
			<input  name="park/tax_rate"  label="上年度经济效益中税收总额同比增幅" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,9,2,2,null,true)" value="<x:out select="$xmlData/data/park/tax_rate" />"/> %
		</td>
	</tr>
</table>
<br/>

<script type="text/javascript">
	

    function calOrgRate() {
		var total_org_num = $("#total_org_num").val();
		
		var culture_org_num = $("#culture_org_num").val();
		var million_org_num = $("#million_org_num").val();
		var five_million_org_num = $("#five_million_org_num").val();
		var hundred_million_org_num = $("#hundred_million_org_num").val();
		
		
		$("#culture_org_rate").text();
		$("#million_org_rate").text();
		$("#five_million_org_rate").text();
		$("#hundred_million_org_rate").text();
		
		
		
		if(total_org_num!=""&&culture_org_num!=""){
			$("#culture_org_rate").text(formatVal((culture_org_num/total_org_num)*100)+"%");
		}else{
			$("#culture_org_rate").text(formatVal(0)+"%");
		}
		
		if(total_org_num!=""&&million_org_num!=""){
			$("#million_org_rate").text(formatVal((million_org_num/total_org_num)*100)+"%");
		}else{
			$("#million_org_rate").text(formatVal(0)+"%");
		}
		
		if(total_org_num!=""&&five_million_org_num!=""){
			$("#five_million_org_rate").text(formatVal((five_million_org_num/total_org_num)*100)+"%");
		}else{
			$("#five_million_org_rate").text(formatVal(0)+"%");
		}
		
		if(total_org_num!=""&&hundred_million_org_num!=""){
			$("#hundred_million_org_rate").text(formatVal((hundred_million_org_num/total_org_num)*100)+"%");
		}else{
			$("#hundred_million_org_rate").text(formatVal(0)+"%");
		}
		
	};
	

</script>
